//
//  NetworkingSHA256ConfigInterceptor.m
//  YiJuZhangShou
//
//  Created by 冷悦 on 16/3/8.
//  Copyright © 2016年 Uranus. All rights reserved.
//

#import "NetworkingSHA256ConfigInterceptor.h"
#import "HeaderUtil.h"

@implementation NetworkingSHA256ConfigInterceptor

- (BOOL)shouldCallAPIWithManager:(NetworkingBaseManager *)networkingManager{
    AFHTTPSessionManager *manager = networkingManager.manger;
    if (manager != nil) {
        [HeaderUtil generateSHA256Header:manager];
        return YES;
    } else {
        DDLogError(@"Can Not Get AFHTTPSessionManager");
    }
    return NO;
}

@end
